#!/usr/bin/env python
#coding=utf-8

import json
import logging
import pandas as pd
from pprint import pprint
from aliyunsdkecs.request.v20140526.DescribeRenewalPriceRequest import DescribeRenewalPriceRequest
from core.logger import logger


class AliYunCommon(object):
    def __init__(self):
        pass


    def get_tag(self, info):
        if "Tags" not in info or "Tag" not in info["Tags"]:
            return "p_common"

        for tag in info["Tags"]["Tag"]:
            if tag["TagKey"] == "appname":
                return tag["TagValue"]

        # 默认
        return "p_common"




def main():
    aliyun_common = AliYunCommon()


if __name__ == "__main__":
    main()